package com.liuxvru.project.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 项目对象 pro_project
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_project")
public class Project extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 项目ID */
    @TableId(value = "project_id", type = IdType.AUTO)
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    @TableField(value = "name")
    private String name;

    /** 项目描述 */
    @Excel(name = "项目描述")
    @TableField(value = "description")
    private String description;

    /** 项目开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "start_date")
    private Date startDate;

    /** 项目结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "end_date")
    private Date endDate;

    /** 项目状态 */
    @Excel(name = "项目状态")
    @TableField(value = "status")
    private String status;

    /** 负责人ID */
    @Excel(name = "负责人ID")
    @TableField(value = "leader_id")
    private Long leaderId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @TableField(value = "client_name")
    private String clientName;

    /** 项目预算 */
    @Excel(name = "项目预算")
    @TableField(value = "budget")
    private BigDecimal budget;

    /** 项目优先级 */
    @Excel(name = "项目优先级")
    @TableField(value = "priority")
    private String priority;

    /** 风险评估描述 */
    @Excel(name = "风险评估描述")
    @TableField(value = "risk_assessment")
    private String riskAssessment;

    /** 项目进度 */
    @Excel(name = "项目进度")
    @TableField(value = "progress_percentage")
    private Long progressPercentage;

    /** Git 仓库链接 */
    @Excel(name = "Git 仓库链接")
    @TableField(value = "git_repository_url")
    private String gitRepositoryUrl;

    /** 项目文档链接 */
    @Excel(name = "项目文档链接")
    @TableField(value = "documentation_url")
    private String documentationUrl;

    /** 设计文档链接 */
    @Excel(name = "设计文档链接")
    @TableField(value = "design_docs_url")
    private String designDocsUrl;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
